Methods and devices of illuminant estimation referencing facial color features for automatic white balance

ABSTRACT

An automatic white balance method and an electronic media device incorporating the method deploy characterized individual human facial color features set of a user or users of the device as reference color surfaces in automatic white balance illuminant estimation and color adjustments, which could improve illuminant estimation accuracy, provide flexible color adjustment options and render the image color to each user&#39;s own satisfaction taking into account user preferred rendition as target values through a human-machine interactive interface.

TECHNICAL FIELD

This invention involves color processing and control methods, systems, and devices of image and video media in electronic media devices.

BACKGROUND

Skin color surfaces are usually difficult in automatic white balance illuminant estimation. Firstly, skin tone could vary significantly from individuals to races; and secondly, it could be very close to and sometimes mingle with the white point locus under certain illuminations, which tends to illuminant estimation errors for some common illuminant estimation algorithms, such as A. The Grey World, B. Perfect Reflector and C. Color by Correlation Models. It is often found that even in top of the line professional or smartphone cameras automatic white balance errors and unpleasant skin tone rendition would occur, for example, by approaching the camera head to near skins. Therefore, in US patent application US2008037975 (A1), it is proposed to remove the detected face area as a noise from automatic white balance illuminant estimation.

Automatic white balance usually comprises steps of illuminant estimation and color gain adjustment followed by related color correction or enhancement. For illuminant estimation, it is a well-known classical phenomenon in automatic white balance that what comes into the camera lens is a mixed emission from surfaces with unknown reflectance spectrum properties illuminated by unknown ambient light sources. It would be much easier for automatic white balance if there is a reference color surface in the scene with known color properties such as a gray chart used for on-site white balance by professional photographers. However, that approach is cumbersome and not applicable to ordinary users for daily usage. Now it is observed that the face of a user of a Front-Side camera is often within the view field of the camera and comprises a considerable portion of the pictures taken, while back-side cameras and other consumer or surveillance digital cameras also take shots of human portraits more often than not. These findings and growing popularity of smartphones and other devices with Front-Side cameras make it a practical application for automatic white balance and related color rendition to use a reference surface within the image target itself, the properly characterized facial color features of the device user.

SUMMARY OF THE INVENTION

The first intent of this disclosure is to provide an automatic white balance method for automatic white balance control in an electronic media device, comprising acquiring The Facial Color Features Set of a user or users and conducting automatic white balance illuminant estimation, gain adjustment and color enhancement based on the illuminant estimation results and the above acquired Facial Color Features Set of the user or users.

The second intent of this disclosure is to provide an electronic media device that incorporates the above method, with detailed description of its system architecture, components, and operations.

The third part of this disclosure is to provide a firmware or software based apparatus to realize the above said method.

Moreover, examples of preferred embodiments are described in detail to help the implementation.

BRIEF DISCUSSION OF DRAWINGS

FIG. 1 is an illustration of the front camera platforms;

FIG. 2 is a block diagram of an example of image processing pipeline including the automatic white balance and related color processing units;

FIG. 3 is a block diagram of another example of image processing pipeline including the automatic white balance and related color processing units;

FIG. 4 is a block diagram for post processing method;

FIG. 5 is a block diagram for the Facial Color Features Acquisition Mode;

FIG. 6 is a block diagram for the Automatic White Balance Adjustment Mode;

FIG. 7 is a block diagram for Automatic White Balance with Machine Learning Mode;

FIG. 8 is a segmentation of face into three parts: face skin, eye ball white, and teeth;

FIG. 9 is an illustration of the white surface locus and skin tone locus within a chromaticity coordinate system, the dotted line indicates possible expanding of the skin tone;

FIG. 10 is an illustration of a method to for illuminant estimation process, using C₃ to perform automatic white balance using one set of gain offsets unanimously to the entire image;

FIG. 11 illustrates a method using C₃ to perform distinctive automatic white balance gain adjustment s of facial parts and other background image to each respective standard reference target;

FIG. 12 illustrates a method using C₃ to perform distinctive automatic white balance gain adjustment s of facial parts and other background image taking user inputs as reference targets;

FIG. 13 illustrates a method to detect and process other naked skin area than face;

FIG. 14 is an illustration of user-platform interactive process;

FIG. 15 is an illustration of feedback learning automatic white balance improvement;

FIG. 16 is an illustration of Facial Color Features used as complimentary vectors for face recognition.

DETAILED DESCRIPTION Nomenclature

C₁, C₂, C₃: Images are segmented to be comprised of facial parts (i.e. face area and its components) and background part (i.e. the image part that excludes the face area), and C₁, C₂, C₃ denote the color profiles of the illuminant estimation results with regard to background part, facial parts and the entire image respectively. The color profile of an estimated illuminant is represented by the coordinates in a color space or chromaticity coordinate system of a white point or a specific color surface. The algorithms used for illuminant estimation could be A, B, C methods described in the Background Section or other methods.

Facial Color Features Set: For automatic white balance and color adjustments methods and apparatus disclosed hereby, Facial Color Features denote the acquired results of color profiles of three components of a segmented human face: the facial skin tone area, the eyeball white and the teeth. Facial Color Features Set comprise the Intrinsic Values set and Target Values set of above mentioned three major components under illumination by illuminants of a range of color profiles of one or more users. The color profile comprises coordinates in a color space or chromaticity coordinate system.

Front-Side Camera Platform: Refers to camera devices and other electronic media devices that have at least one camera configured such that its field of view usually comprises the image of a user or users of the electronic media device as a front-side operational mode, as in FIG. 1, 100 a smartphone, 120 a notebook, 160 and 180 a built-in Front-side camera.

OWNEROwner: The actual owner or the administrator of the electronic media device or devices defined in this application, who has the privilege to use and grant others the privilege of the USER STATUS to use the invented methods in this disclosure. If the face of a person detected is not recognized to have the USER STATUS, it will not appreciate the benefit of this application.

User: A person who has USER STATUS. The USER STATUS can also be granted to a person automatically by the service routines of the electronic media device or devices defined in this application, and the size of user group could be dynamically expanded up to the system resources and efficacy limits.

ISP: An image and signal processing system in an electronic imaging device such as a camera, usually comprising interfaces to image sensor and host controller, an electronic circuitry pipeline and other computational logic circuitry hardware engines for pixel level processing, memory modules, a programmable controller and firmware for image processing and system control processes.

An electronic media device of a Front-Side Camera Platform comprises one or more cameras, with at least one camera is configured such that its field of view usually comprises the image of a user or users of the electronic media device as a front-side operational mode; one or more processors with one working as the System Controller controlling system operation of the device; non-transitory storage media containing instructions readable by System Controller and the one or more processors; memory storage media module accessible by the camera or the cameras to store captured and processed images and other data, and by the one or more processors to execute the controlling instructions; an apparatus with mechanisms to receive and send images, videos and other data; a display device being able to display images, videos and graphics content; a user controllable interactive interface to the electronic media device that displays image or graphics content on the display device and takes in the user control input by touching, keying, voice, or other remote sensing mechanisms and interprets the user input so that the System Controller understands the user's intention and properly process it.

The camera in front-side operational mode comprises a lens, an image sensor, an ISP system, an interface logic circuitry between the sensor and the ISP system, a programmable camera controller, which could be a dedicated camera processor or shared by the host processor or one of the host processors, a display device or shared host display device, a native storage memory or shared storage memory with the host device for ISP operations, and an image and video output modules orchestrated by the host device. The camera has power off, power on, standby, preview, and video or still capture mode among others, controlled by the System Controller or a dedicated camera controller upon a host request of the System Controller in response to the user input. In preview or capture mode, image frames from an image sensor are acquired via an interface circuitry and pre-processed in the ISP pipeline and stored in a memory storage after demosaic stage, where face detection, segmentation and recognition and Facial Color Features based automatic white balance is carried out by one or more programmable computing devices and logic circuitry engines coupled to the memory storage and ISP pipeline. The processed image is sent to the coupled ISP downstream pipeline for further processing to generate formatted outputs respective to an application specific standard, to be displayed on a display device of the host media device, stored in a local nonvolatile storage media or sent out by a networking media after encoding and other further processing. Simplified examples of schematics for an ISP of a camera are illustrated in FIG. 2 and FIG. 3.

Automatic white balance control apparatus as part of the camera ISP comprises illuminant estimation and gain adjustment of the image color so that image will appear like under an ambient illumination by an illuminant with a standard color profile such as D50 for example, or the image color is adjusted to a popularly favored color target more pleasing to human perception, or to the preferred target condition defined by an individual user of the device. Additional color correction and enhancement are carried out after or together with the automatic white balance gain adjustment. The automatic white balance control apparatus could be implemented real time inside the ISP block as illustrated in FIG. 2 and FIG. 3, or in a different location of ISP pipeline such as in Bayer domain or as a post processing apparatus on the same device platform as illustrated in FIG. 4, or as an off-line application in a different device. As in an example embodiment schematics is illustrated in FIG. 2. Image or frames of video streams are acquired, pre-processed and stored in a storage memory 260. The computational resources 230 read data from and write back to buffer 260 to conduct face detection, recognition, Facial Color Features extraction, illuminant estimation, white balance gain adjustment, color correction and enhancement. Sufficient memory size and parallel processing are preferred for continuous operation with good image quality and reduced latency in video streaming and image capture.

The automatic white balance control apparatus described herein has three operational modes: The Facial Color Features Acquisition Mode as illustrated in FIG. 5; The Automatic White Balance Adjustment Mode as illustrated in FIG. 6; and The Automatic White Balance with Machine Learning Mode as illustrated in FIG. 7.

In the Facial Color Features Acquisition Mode, Module 53 conducts face detection, segmentation and recognition of a pre-processed captured image in an image storage buffer 51; Module 52 acquires Intrinsic Values of the Facial Color Features for each recognized user by methods detailed later, and acquires Target Values of the Facial Color Features as user favored rendition based on user inputs via an Interactive Interface module 55 and stored the results in module 54 The Facial Color Features Set.

In the Automatic White Balance Adjustment Mode, Module 63 conducts face detection, segmentation and recognition of a pre-processed captured image in an image storage buffer 61. Module 64 takes the result of module 63 and the stored Facial Color Features data from 62 The Facial Color Features Set to conduct illuminant estimation to get C₁, C₂ and C₃, and then conducts white balance and color enhancement based on C₁, C₂, C₃ and the user data in The Facial Color Features Set in 62.

In Automatic White Balance with Machine Learning Mode, automatic white balance control initially is based on C₁ and the Facial Color Features Acquisition by Machine Learning is carried out at the background, as the camera operates in normal conditions. Once the learning converges and Facial Color Features data are acquired, a similar operation to the Automatic White Balance Adjustment Mode described above is carried out.

The Facial Color Features Acquisition Mode

Below is a detailed description of The Facial Color Features Acquisition Mode as illustrated in FIG. 5.

Face detection and recognition have been running on smartphones and other electronic media devices in real time. The computational complexity for face recognition could be even more reduced to the level of user identification in the context of applications concerned in this disclosure, due to the availability of a variety of identity info in the electronic media devices such as password, finger prints and other sensing data or secured device access protocols, the availability of Facial Color Features as a complementary or independent identity feature set to be obtained by methods detailed later in this disclosure, and limited size of user group on the Front-Side Camera Platform, which in an extreme yet quite common case is just the OWNER alone for devices like mobile phones or personal computers. Therefore, general methods for implementation of face detection, segmentation and recognition are considered to be a prior art without the need for elaborations herein. An example results of detected, segmented and recognized face is illustrated in FIG. 8.

Set the camera of the Front-Side Camera Platform to the facial color feature Lab Calibration Mode, and use an ambient light source with a standard reference color profile such as D50 or D55 to illuminate a standard grey chart within the proper depth of field; adjust exposure by automatic exposure of manually; adjust white balance by automatic white balance or manually, so that the ratio of average R, G, and B values of a region of 60×60 pixels in the image center is 1:1:1 in the sRGB color space. Now turn off the automatic white balance function, and take a snapshot of the face of the user and make sure the image is clear and size of the face is large enough, such that the exposure of the face is proper and eye ball white and front teeth are clear and measurable as illustrated in FIG. 8. Then the facial color feature Calibration Service Routine conducts face detection and segmentation, resulting in 800 hair, 820 mouth, 830 eyes, 860 nose, and 880 face skin, which comprises the face area excluding the above named other parts. For automatic white balance and color enhancement, the skin color and is the most important item, while the eye ball white and teeth are also helpful, though may not be visible from time to time.

To extract skin color profiles, some pre-processing is needed to filter away noise components in the face such as hairs, nostrils and mustaches, and the pixels in skin area 880 and nose area 860 are converted from RGB to YCbCr space with a data structure to index back each pixel to its values in original RGB space. A first filter using luminance value Y as the threshold is run such that the dark pixels below a threshold are discarded, and qualified pixels form candidate pixel group one, of which a 2D histogram distribution in CbCr coordinate system is populated, and a second filter is run such that 70% pixels closest to the peak are selected as the qualified pixels and indexed back to their values in RGB space, where a simple average of qualified pixels in each of the R, G, B channels is computed to get what is defined herein the Intrinsic Values (r₁₁₀, g₁₁₀, b₁₁₀) of the face skin of the user, and input them to the relative position of the user entry in The Facial Color Features Set.

The processes to extract Intrinsic Values of eye ball white and teeth are similar, and the eye area 830 is further segmented to get the contours of the eye ball white region, while mouth area 820 is further segmented to get the contours of the teeth. Only pixels inside the contours are concerned further on. Then a similar filtering and calculation to the steps described in the previous paragraph are used to get Intrinsic Values of the eye ball white and the teeth as user entry data in The Facial Color Features Set.

Now that one set of Intrinsic Values of the Facial Color Features are acquired, the Facial Color Feature Calibration Routine proceeds to acquire the Target Value through an Interface Service Routine, which comprises displaying one or more enhanced color rendition of the facial parts (typically skin tone) of the captured image of the user or provide a color adjustment mechanism through a user-machine interface and gets the input from the user of the favored choice or adjustment. The adjustment of the face skin tone could be carried out by a transform in a color space with some statistically or empirically favored effects such as whitening, tanning, warming, and cooling etc. It also could be designed such that the user can use manual input, voice or other interactive methods freely control the hue, saturation and luminance of rendered image moving in a reasonable zone of a selective color space, and the corresponding rendered face picture is displayed as illustrated in FIG. 14. Based on the user input as a choice or adjustment or a combination thereof, the corresponding target is accepted and the facial color profiles are extracted and converted to the Target Values as a set of coordinates in RGB space and input into the Target Values position of the user entry in The Facial Color Features Set. Besides the coordinate representation of the Target Values, the transform functions corresponding to the user input as an operation to convert the captured image represented by the Intrinsic Values to the enhanced images represented by the Target Values is also recorded in the Target Value data structure in The Facial Color Features Set, so that the same or parameter adjusted transform could be used in the process of Automatic White Balance Adjustment Mode.

By changing the color profiles of the ambient illumination to cover sufficient range for automatic white balance applications and using similar procedures described above, a user entry in The Facial Color Features Set is complete and available to automatic white balance.

Due to the cost of lab condition set up and tedious procedures just described, an alternative acquisition process under Facial Color Features Measurement Mode is by the user taking snapshots of the front view of the face of the user together with a piece of standard grey chart or white surface material as a reference surface under a variety of common indoor and outdoor conditions, such as ‘home incandescent light’, ‘office florescent light’, ‘sunny’, ‘cloudy’, ‘cloudy with sunshine’, ‘sunny with blue sky’, ‘sunrise’, ‘sunset’ and etc. By measuring the a reference surface, the Measurement Service Routine detects color profiles of current illumination and the rest of the process to extract Facial Color Features is similar to what described under the Lab Calibration Mode.

An interpolation is usually needed during illuminant estimation when estimated illumination is in between calibrated data in The Facial Color Features Set. In one embodiment, The Facial Color Features acquired could go through a curve fitting procedure to generate continuous color temperature curves by a piecewise linear or nonlinear interpolation or extrapolation methods to cover sufficient color temperature range for real time illuminant estimation and automatic white balance adjustments. Take the skin tone as an example, by measuring related patches on Macbeth or other standard color charts representing skin tones or utilizing open source statistics, the skin tone distribution zone under a wide range of color temperature covered by a dotted envelop curve in (B/G, R/G) color coordinate system is illustrated in FIG. 9, wherein each user could find a trajectory of his or her skin tone Intrinsic Values, as well as that of Target Values, if the user did not intentionally give inputs to the Facial Color Features acquisition process as a special make up.

An Extrapolation Method to acquire the Intrinsic Values of the Facial Color Features is to get one point by previously described Lab Calibration Mode or Facial Color Features Measurement Mode procedures and do extrapolation to extend bi-directionally in line with the population trajectory of human skin and respective to the white point curve calibrated of the camera module of the device to cover the full color temperature range, as illustrated in FIG. 9, starting from a certain point P.

The above described Facial Color Features acquisition processes could be initiated whenever a new user is added to the user group or at a user's free will. For example, when the user's facial condition changes due to sickness, aging, and cosmetic make up, or when a different flavor of rendition has strong appeal to activate the desire.

The Automatic White Balance Adjustment Mode

Below is an example embodiment of how to use Facial Color Features in automatic white balance illuminant estimation in Automatic White Balance Adjustment Mode, based on a modified perfect reflector model in a (B/G, R/G) chromaticity coordinate system.

Refer to FIG. 10, for background illuminant estimation C₁, assume i_(b) is a pixel in the image background part, and its R, G and B components are denoted by r_(ib), g_(ib), b_(ib), the total number of pixels of image background portion is T₁, then an estimated averaged coordinates

$\begin{matrix} {\left. {{{{\overset{\_}{C}}_{1}\; = \;\left\lbrack \;\left( {\sum\limits_{1}^{T_{1}}\;{\alpha_{ib}*\;{\left( \frac{r_{ib}}{g_{ib}} \right)/\;\left( {\left( {\sum\limits_{1}^{T_{1}}\;\alpha_{ib}} \right)*T_{1}} \right)}}} \right)\quad \right.};}\left( {\overset{T_{1}}{\sum\limits_{1}}{\alpha_{ib}*\;{\left( \frac{b_{ib}}{g_{ib}} \right)/\;\left( {\left( {\sum\limits_{1}^{T_{1}}\;\alpha_{ib}} \right)*T_{1}} \right)}}} \right)} \right\rbrack\;} & \lbrack 1\rbrack \end{matrix}$

Where α_(ib) is a weighting coefficient, depending upon the luminance and the coordinates of i_(b).

Project C ₁ to the nearest reference point in white point line, or a segment formed by the nearest two reference points in white point line, and find whichever junction point is closer to be C₁, as in FIG. 10.

The method to calculate C₂ is quite similar to that for C₁. Each facial part is regarded as an independent surface, assume i_(fj) is a pixel on facial part and index j=1 for skin part, j=2 for eyeball white, and j=3 for teeth as the row number in the user entry in The Facial Color Features Set. The estimated averaged coordinate corresponding to skin part is

$\begin{matrix} {{{\overset{\_}{C}}_{2_{f\; 1}} = \left( {{\left( {\sum\limits_{i\; = \; 1}^{T_{2_{f\; 1}}}{\left( \frac{b_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}} \right)/\left( {\sum\limits_{i\; = \; 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}} \right)},{\left( {\sum\limits_{i\; = \; 1}^{T_{2_{f\; 1}}}{\left( \frac{r_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}} \right)/\left( {\sum\limits_{i\; = \; 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}} \right)}} \right)},} & \lbrack 2\rbrack \end{matrix}$ where coefficient β_(i) _(f1) is a weighting coefficient, depending upon the luma and the coordinates of i_(fj), T₂ _(f1) is the total number of pixels of skin part.

Since each user has a set of Intrinsic Values of the face skin stored in an entry in The Facial Color Features Set, projecting C ₂ _(f1) to the nearest reference point in reference skin color line, or a segment formed by nearest two reference points in skin color line, selecting whichever junction point is closer to be C₂ _(f1) ;

The calculation for the rest of the facial part C₂ _(f2) and C₂ _(f3) is similar to that for C₂ _(f1) .

As each point on its respective color temperature curve corresponding to an estimated color temperature of the canonical illuminant on the white point locus, C₂ _(f1) , C₂ _(f2) and C₂ _(f3) are mapped to C₂ _(f1) ′, C₂ _(f2) ′ and C₂ _(f3) ′ respectively by a look-up table operation followed by a linear interpolation between neighboring reference points, and the overall estimation of the color temperature C₂, computed from the three facial parts is expressed as a weighted average sum of C₂ _(f1) ′, C₂ _(f2) ′ and C₂ _(f3) ′:

$\begin{matrix} {{C_{2} = {\left( {\sum\limits_{j = 1}^{3}\;{C_{2_{fj}}^{\prime}*\theta_{j}}} \right)/{\sum\limits_{j = 1}^{3}\;\theta_{j}}}},} & \lbrack 3\rbrack \end{matrix}$ wherewherein θ_(j) is a confidence related weighted level weighting factor.

Taking C₁, C₂ as a vector, the overall estimate for entire image is expressed as C₃=(C₁*k₁+C₂*k₂)/(k₁+k₂)  [4] where, k₁, k₂ are weighting factors.

For some artificial light sources that differ from the black body radiance locus, and require color profile adjustment in addition to color temperature adjustment, C₁=C ₁, which means no projection toward the white point locus is needed, and the same method applies to C₂ calculation.

With illuminant estimation done, there are a variety of options how to render automatic white balance and color enhancement, particularly over the facial parts. There are trade-offs among color fidelity, effects of color enhancement, potential artifacts, user satisfaction and computational complexity. One simpler embodiment is to apply the same gain offset calculated with C₃ as the preferred illuminant estimation and a pre-defined color profile such as D50 or D55 as the standard target condition, using an image processing pipeline scheme as illustrated in FIG. 3, and the automatic white balance gain calculation is as follows:

It is assumed at the standard target illuminant condition,

${\frac{R}{G} = 1},{\frac{B}{G} = 1}$ for a white surface. This is usually achieved in image pipeline calibration stage, a pre-set of gains are applied to match the color characteristics of a specific sensor and lens module, and front end image processing pipeline logic designs. Now that the estimated illuminant is C₃ with coordinates

$\left( {\frac{B_{1}}{G},\frac{R_{1}}{G}} \right)\mspace{14mu}{in}\mspace{14mu}\left( {{B/G},{R/G}} \right)$ chromaticity coordinate system, the gain offsets applied to R and B color channels of each pixel of the image are just their reciprocals G/R₁ and G/B₁ respectively, while G gain is not changed to avoid deviations in luminance level.

After automatic white balance gain adjustment, color correction is carried out by a 3*3 CCM matrix with constant coefficients, expressed as [R′,G′,B′]=A*[R,G,B]^(T).  [5]

Another example embodiment of automatic white balance gain and color enhancement is illustrated in FIG. 11, where instead of a unified gain adjustment toward a standard target D50 on white point locus, each of the facial parts is adjusted from mapped C₃ position to D50 position on its own color temperature curve as fitted from the Intrinsic Values of the Facial Color Features in The Facial Color Features Set. Accordingly, a similar gain calculation to the unified method is carried out and applied respectively to pixel areas of face skin, eye ball white, teeth, and other background areas of the image. This approach has better color rendition for facial parts and computational complexity is also higher.

A third embodiment of automatic white balance adjustments is illustrated in FIG. 12, wherein the facial parts are adjusted from their current position in their own color temperature curve corresponding to C₃ to a user preferred target position defined as Target Values in The Facial Color Features Set. As in the process to acquire The Facial Color Features Set, each set of Intrinsic Values data are mapped to a set of Target Values data by a transform function corresponding to a choice or adjustment from the user input. In case of missing the input choice from a user, the Target Values take as default Target Values a standard reference Intrinsic Values position from the user entry in The Facial Color Features Set or experimentally and popularly favored reference color profiles.

A preferred embodiment for automatic white balance adjustments is by adjusting the facial parts and other detected skin area of a user from under current illuminant estimation C₂ to the user preferred target position defined as the Target Values in the user entry of The Facial Color Features Set, and color of the rest of the image from under current illuminant estimation C₁ to under a standard reference illumination position. This method is particularly applicable where the illuminations of the face and the background are from illuminants with quite different color profiles. One solution is to use the original transform function during the process of facial color features acquisition with optimized parameters tuning gearing to the illuminant estimation results, wherein an interpolation is needed between two or more characterized intrinsic values in The Facial Color Features Set to determine the proper parameters for transform function to get to the proper Target Values.

An alternative solution is described below, considering the face skin tone first:

Assuming B_(current) and G_(current) to be the estimated skin tone under current illuminant estimation C₂, and R_(ref), B_(ref) and G_(ref) to be current Target Values for face skin corresponding to C₂, calculate

$\begin{matrix} {{{{R\_ gain}\; = \;\frac{R\_ ref}{R_{current}}};\;{{B\_ gain}\; = \;\frac{B_{ref}}{B_{current}}};\;{{G\_ gain}\; = \;\frac{G_{ref}}{G_{current}}}},} & \lbrack 6\rbrack \end{matrix}$ and multiply the R, G, and B components of each pixels of the facial skin by R_gain, B_gain and G_gain respectively. In case the difference between G_(ref) and G_(current) is bigger than a threshold, to avoid luminance level fluctuation artifacts in the facial boundaries, convert the pixels in the face skin area to HSL color space, wherein adjust the color saturation and hue of the pixels to the desired Target Values, without changing L, by a procedure detailed below:

Assuming current illuminant estimation and the Target Value in HSL color space to be (H_(current), S_(current), L_(current)) and (H_(ref), S_(ref), L_(ref)) respectively, calculate the ΔH=H_(ref)−H_(current); ΔS=S_(ref)−S_(current), and for each pixel (h_(current0), S_(current0), l_(current0)), the adjustment is by the below formulas; h_(current)=h_(current0)+γ*ΔH;  [7] s_(current1)=s_(current0)+θ*ΔS;  [8] where, γ and θ are luminance and color dependent factors, and each adjusted pixel (h_(current1), s_(current1), l_(current0)) is converted back to RGB color space.

To render a consistent skin tone for face and other naked skin parts of the user, it is necessary to estimate where and how large are the naked skin areas other than the face. Naturally, neck is connected to head and face. Based on the geometry measure of the size proportion and orientation of the detected face in the image, a projection is made of a rectangle image area that might contain the whole body and limbs of the user as illustrated in FIG. 13. Then further detection and segmentation procedure leads to identifying the contour of the body and limbs. Then the image pixels inside the contour are converted from RGB color space to YCbCr space, wherein take the current estimated face color coordinates f as the center, populate a 2D histogram in CbCr chromaticity coordinate system, and use a rectangle or circle with adjustable dimension as a first stage filter. For pixels inside the area, further filtering is carried out to determine a skin pixel by a second classifier using features such as morphological measurements, the coherence and connectivity of neighboring pixels or pixel clusters and luminance values. Skin pixels are processed using the same way as those for the face skin, and other facial parts such as eye ball white and teeth, depending upon the confidence level in estimation of their positions, clarity and colors, could be adjusted from their current Intrinsic Values to the Target Values, using similar calculation scheme as above for skin tone, or are treated the same way as the background. Since the skin tone and other facial areas are processed differently from the other parts of the image, boundary smoothing is carried out after color adjustments.

There are more implementation methods for color adjustments based on a variety of combinations of C₁, C₂ and C₃ that could be tailored to different favors, wherein the enumeration of the implementations for each combination is not necessary since it is not difficult to infer the steps to carry them out by ordinary individuals of the skill in this field, within the framework of methods described above in this disclosure.

Automatic White Balance with Machine Learning Mode

The Automatic White Balance with Machine Learning Mode could be turned on by a user anytime or by the Learning Service Routine of the system automatically. The Learning Service Routine starts to run in background when the camera operates normally in preview, capture or playback mode wherein the camera acquires a digital image and store the image in an image buffer accessible by one or more processors. The Learning Service Routine running on the one or more processors start illuminant estimation by C₁ in an unsupervised learning mode, and if a certain illuminant estimation C₁₀ has a confidence level w₁ higher than a threshold w_(t), the one or more processors conduct face detection, segmentation recognition of the buffered image, and in case of a face of a user being identified matching a user entry in The Facial Color Features Set locate the contours of the face skin, the eyeball white and the teeth areas, extract the Intrinsic Values data of the facial color features of the face skin, the eyeball white and the teeth by averaging qualified pixels after filtering using a first luminance threshold filter and a second histogram based color filter and store the Intrinsic Values data in a candidate buffer. If for the illuminant estimation C₁₀, the differences between the Intrinsic Values data stored in the candidate buffer are smaller than a threshold with a repetitive appearance probability P₁ bigger than a threshold P_(1t), the illuminant estimation C₁₀ is considered accurate, and an average of the Intrinsic Values data within the difference threshold stored in the candidate buffer is computed and added into the related Intrinsic Values position of the user entry in The Facial Color Features Set.

In a supervised learning mode, the one or more processors proceed to display on a display device an image after automatic white balance adjustments adjusting the image color under current illumination estimated by C₁₀ to under a standard reference illumination or a popularly perceptually favored illumination condition followed by a color correction, and use a user-machine interactive interface to prompt for and acquire user's opinion about the color rendition. If the user confirms the color is satisfactory, the Intrinsic Values of the user under the estimated illumination C₁₀ is extracted using the same procedure described in the unsupervised learning mode and added to the related Intrinsic Values position of the user entry in The Facial Color Features Set.

In a combinational mode, after the accuracy of an illuminant estimation C₁₀ passing through the statistical criteria in the unsupervised learning mode, a further evaluation using the same procedure described in the supervised learning mode is carried out before the illuminant estimation C₁₀ is confirmed and related Intrinsic Values data are added to The Facial Color Features Set.

The Target Values data are acquired in the supervised learning mode by displaying enhanced images over or provide a mechanism to adjust the captured image under the illumination estimated by C₁₀, or a combination thereof, and prompting for and acquiring the input from the user. The Target Values of the facial color features are extracted based on the input by the user using the same procedure described in the unsupervised learning mode, and added together with the transform functions corresponding to operations on captured image based on user input to the related position of the user entry in The Facial Color Features Set.

The short term learning process is complete after the acquired data in the user entry of The Facial Color Features Set cover sufficient range of color profiles as needed for automatic white balance, and illuminant estimation and automatic white balance adjustments could be carried out using the acquired data in The Facial Color Features Set.

Machine learning could continue even after it meets short term convergence criteria, and the user can turn it on and off through an interactive interface to the device. This is useful when the facial color profiles change due to aging, sickness, emotions or cosmetic make ups, or to satisfy the desire of a user for an intentional special color effect as the Target Values. The user feedback mechanism as described hereby could also be used to affect the weighting schemes, the threshold parameters in the micro-architecture of automatic white balance control apparatus, and for example, the parameters in the transform function to convert the Intrinsic Values to the Target Values. A simple flow chart is illustrated in FIG. 15.

Although the above described preferred embodiments are focused on automatic white balance for the Front-Side Camera Platform, the automatic white balance methods and apparatus described herein are applicable to other type of electronic media devices as well. For example, it is common the back side camera of a mobile phones or a digital camera has a Set Timer Mode for taking shots of self-portrait. Another example is the back-side camera or a digital camera can use a user's face as a reference for automatic white balance if the user's face is in the view and the facial color profile of the user has been acquired in an accessible The Facial Color Features Set. Moreover, the device accommodates an integrated and a distributed implementation schemes, wherein the integrated implementation scheme accomplishes the method in one single device of a Front Side Camera Platform, while the distributed implementation scheme accomplishes the method by more than one devices with at least one device having at least a camera having a front-side operational mode, wherein for example, the image or images captured by a first front-side camera device could be sent to a second separate or deferent type of device to be processed to extract The Facial Color Features Set, and the acquired Facial Color Features Set could be used by the second device or sent back to the first device or a third separate or deferent type of device to conduct illuminant estimation and white balance adjustments. The automatic white balance method in this disclosure could also be accomplished by software in one or mode devices receiving images not in real time using the methods described above. Except for image capture requiring a camera, other devices may or may not have a camera, including for example TV set, display devices, game devices, computers, image or video compression or encoding devices and network transmission devices.

While in a preferred embodiment described in FIG. 2, the frame buffer memory storage and related automatic white balance processing is carried out by computational resources in RGB space, it could also be implemented in Bayer domain or in a distributed scheme within the ISP, or as a post-processing block as illustrated in FIG. 4, or offline in a different image media device.

In most of the generic ISP of camera devices, the automatic white balance control apparatus comprise electronic digital circuitry based pixel computation (i.e. hardware) for pixel color statistics collection engine, gain offset, CCM multipliers and more in the ISP pipeline, while programmable processor or DSP device based (i.e. firmware) computation are responsible for illuminant estimation, gain offset calculation, other computational services and overall process control. To accomplish the tasks of face detection, segmentation and recognition and the automatic white balance methods described in this disclosure requires proper arrangement of the resources. The more dedicated computing resources, and the faster processors or DSPs, the faster processing speed, better image quality and less latency, but the cost and power consumption are also higher. The computational complexity could increase significantly if there are more than one users in the view as in a Multiple User Mode. In that case, one option is to prioritize the user entries in The Facial Color Features Set and add a Priority Index Field in the data structure of The Facial Color Features Set, and conduct automatic white balance with higher priority in favor of the user entries with higher priority ranks. The OWNER or the user could also select a Multiple User Mode or Single User Mode to avoid the conflict. Taking a mobile phone device for example, the OWNER usually is the only user and naturally would like that he or she to be best expressed in the image so as to his or her own satisfaction by selecting a Single User Mode. On occasion such as taking a shot of family gathering, it would please all if each member is satisfied, and Multiple User Mode could be selected with the same priority rank allover, which would lead to a multiple user concurrent processing. Obviously, it would take more resources, power and time to finish the automatic white balance than for a single user. So there is a trade-off between performance and cost, as it could be seen from the flow chart in FIG. 2 and FIG. 3.

However, as it is indicated earlier, both face detection and recognition have been running on imaging devices such as cameras of some mobile phones, accomplishing the increased computational load as a result of the automatic white balance methods described in this disclosure should be feasible, and particularly for the example embodiment using C₃ to apply unified gain offset to the entire image. As an expedite implementation, firmware based realization of automatic white balance methods disclosed herein for still image capture is doable only at the cost of some additional latencies.

The illuminant estimation by the front-side camera could be useful to automatic white balance for the back-side camera, when it works in a slave mode. The back-end camera can issue a system request to the System Controller for the front-side camera to assist its illuminant estimation. The System Controller endorses if there is no conflict in system resource and the front-side camera and back-side work concurrently. This operational mode will benefit situations where the confidence level for the illumination of the back-side camera is low, and the illumination of both cameras are the same or correlated, including the following conditions for example: The fields of view of both cameras are both indoor or outdoor; The distance of fields of view of both cameras is close; The color profile of light source detected by the front-side camera is the same or close to the illuminant estimation by the back-side camera, and The illuminant estimation of both cameras are the same or close. The back-side camera and front-side could work concurrently as a normal operation mode or intermittently on a per need basis. When the user is not operating the front-side camera, the front-side camera does not have to conduct automatic white balance gain adjustment and other downstream ISP processing to reduce power consumption.

The Intrinsic Values of The Facial Color Features Set acquired could serve as a complementary or an independent feature Set for face recognition and be fed back into the face recognition module of the platform as illustrated in FIG. 16, and it is also usable in other face recognition related applications, such as video surveillance and Internet image and video searching.

While ordinary professional of the skill in this field should be able to come up with a variety of practical implementation schemes tailored to the different embodiments of the automatic white balance methods and framework disclosed hereby, it is the intention of the applicant that the following claims include all modifications and alterations that they come within the scope of the following claims or the equivalents thereof. 

What is claimed is:
 1. A method of automatic white balance illuminant estimation referencing facial color features for a color processing of image and and/or video media in an one or more electronic media device, devices comprising the steps of: acquiring one or a plurality of digital images of scenes including a face of a user or users of the device, including: capturing a digital image or images of a user or users using a lens and image sensor, receiving a digital image or images of a user or users after capturing using a lens and image sensor, or a combination of the capturing and receiving steps; acquiring a facial color features set of the user or users including intrinsic values and target values of the color profiles of a skin tone portion, eye ball white and teeth by a color profile extraction process; acquiring a digital image; conducting face detection, segmentation and recognition on the digital image, wherein if a recognized face is the face of a user matching a user entry in the facial color features set; conducting illuminant estimation based on segmented facial features and the acquired facial color features set resulting in C₂, based on parts of the image other than the segmented facial parts features, resulting in C₁, and determining a final estimation, C₃, based on C₁ and C₂; and conducting automatic white balance gain adjustment and color enhancement based on C₁, C₂, C₃, and the acquired facial color features set of the user or users acquiring a facial color features set of one or more users; acquiring a digital image; identifying successfully a face in the digital image matching the face of a user, wherein data of facial color features of the user have been acquired in the facial color features set; acquiring data of facial color profile of at least one facial part of facial skin tone area, eye ball white and teeth from the face of the user in the digital image; conducting an illuminant estimation of the face of the user in the digital image based on the acquired data of facial color profile of the at least one facial part of the facial skin tone area, eye ball white and teeth from the face of the user in the digital image referencing data of facial color features of the user in the facial color features set.
 2. The method of claim 1, further comprising an integrated implementation scheme and distributed implementation schemes, wherein: the integrated implementation scheme accomplishes the method of claim 1 in a single device having at least a camera in a front-side operational mode, including a mobile phone, a digital camera a camcorder, a laptop computer, a desktop computer, a desk or mobile computing or communication device, and a color imaging device, and the distributed implementation scheme accomplishes the method of claim 1 by more than one devices with at least one device having at least a camera in an front-side operational mode, wherein the step of capturing a digital image or images is carried out in a first device, acquiring the facial color features set is carried out in a second device, and conducting the illuminant estimation, the automatic white balance gain adjustment, and the color enhancement is carried out in a third device, or another combination of devices.
 3. The method of claim 1, wherein the step of acquiring a facial color features set comprises: capturing an image including a face of a user under a set of standard reference illuminations of known color profiles or capturing an image including a face of a user and using a standard reference gray chart in a variety of common shooting conditions and determining illumination profiles of the shooting conditions by analyzing the gray chart; conducting face detection, segmentation, and contour location of face skin, the eyeball white and the teeth; extracting the intrinsic values of the facial color features set of the face skin, the eyeball white and the teeth by averaging pixels in each segment after filtering the pixels using a luminance threshold filter and a histogram-based color filter; extracting the target values of the facial color features by applying the capturing step, conducting step, and intrinsic value extracting step to images enhanced by user choice, user adjustment, or a combination of user choice and user adjustment, using a user-device interface and transform functions corresponding to the user-choice and/or user-adjustment operations performed on the captured image.
 4. The method of claim 1, wherein the step of acquiring a facial color features set comprises a machine learning mode, wherein the machine learning mode is activated or re-activated by a user or a system service routine, and one or more processors: start illuminant estimation of C₁ in an unsupervised learning mode; if a certain illuminant estimation, C₁₀, has a confidence level, w₁, higher than a threshold, w_(t), conduct face detection, segmentation recognition of a buffered image, and if a face of a user matches a user entry in the facial color features set, locate the contours of the face skin, the eyeball white and the teeth, extract the intrinsic values of the facial color features of the face skin, the eyeball white and the teeth by averaging pixels after filtering using a first luminance threshold filter and a second histogram-based color filter, and store the intrinsic values data in a candidate buffer; if for the illuminant estimation C₁₀, the differences between the intrinsic values stored in the candidate buffer are smaller than a threshold with a repetitive appearance probability, P₁, which is bigger than a threshold Pit, the illuminant estimation C₁₀ is considered accurate, and an average of the intrinsic values within the difference threshold stored in the candidate buffer is computed and added into a related intrinsic values position of the user entry in the facial color features set; in a supervised learning mode, display, on a display device, an image after automatic white balance adjustments adjusting the image color under the illumination estimated by C₁₀ to under a standard reference illumination or a user-favored illumination condition followed by color correction, and use a user-machine interactive interface to prompt for and acquire user's opinion about a color rendition of the image; if the user confirms that the color rendition is satisfactory, extract intrinsic values of the user under the estimated illumination, C₁₀, using the same procedure described in the unsupervised learning mode and add the intrinsic values to the related intrinsic values position of the user entry in the facial color features set; in a mode combining the supervised and unsupervised learning procedures, after assessing the accuracy of the illuminant estimation, C₁₀, in the unsupervised learning mode, conduct a further evaluation using the same procedure described in the supervised learning mode to confirm the accuracy of illuminant estimation, C₁₀, before related intrinsic values data are added to the facial color features set; acquire the target values data in the supervised learning mode by displaying enhanced images or provide a mechanism for the user to adjust the captured image under the illumination estimated by C₁₀, or a combination thereof, and prompt for and acquire input from the user; extract the target values of the facial color features based on user input using the same procedure described in the unsupervised learning mode, and add the target values together with transform functions corresponding to operations on captured image based on user input to the related position of the user entry in the facial color features set; and complete the learning process after the acquired data in the user entry of the facial color features set cover a sufficient range of color profiles as needed for automatic white balance, and illuminant estimation and automatic white balance adjustments could be carried out using the acquired data in the facial color features set.
 5. The method of claim 1, wherein the step of illuminant estimation comprises a specific implementation method comprising the steps of: using a (B/G, R/G) chromaticity coordinate system for illuminants with a black body radiation color profile; calculating illuminant estimation, C₁; i_(b) denoting a pixel in an image background and in an RGB color space, with its R, G, and B components represented by r_(ib), g_(ib), b_(ib) respectively, the total number of pixels of the image background portion denoted by T₁, calculating illuminant estimation for the background, {tilde over (C)}₁, given by coordinates; ${{\overset{\_}{C}}_{1} = \left( {\frac{\sum\limits_{1}^{T_{1}}{\alpha_{ib}*\left( \frac{r_{ib}}{g_{ib}} \right)}}{\left( {\left( {\sum\limits_{1}^{T_{1}}\alpha_{ib}} \right)*T_{1}} \right)},\frac{\sum\limits_{1}^{T_{1}}{\alpha_{ib}*\left( \frac{b_{ib}}{g_{ib}} \right)}}{\left( {\left( {\sum\limits_{1}^{T_{1}}\alpha_{ib}} \right)*T_{1}} \right)}} \right)},$ wherein α_(ib) is a weighting coefficient, depending upon the luminance and the coordinates of i_(b); projecting {tilde over (C)}₁ to a nearest reference point in a white point line, or a segment formed by the nearest two reference points in the white point line, selecting whichever junction is nearest, wherein the junction is C₁; calculating C₂ by considering each facial segment as an independent surface, assuming i_(fj) to be a pixel on the facial segment and index, j, denoting a row number of a facial segment in the user entry in the facial color features set, wherein j=1 for a skin segment, j=2 for eyeball white, and j=3 for teeth, and calculating estimated averaged coordinates corresponding to the skin segment by, ${{\overset{\_}{C}}_{2f\; 1} = \left( {\frac{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\left( \frac{b_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}}{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}},\frac{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\left( \frac{r_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}}{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}}} \right)},$ wherein coefficient, β_(f1), is a weighting coefficient, depending upon a luminance, and the coordinates of i_(fj), T₂ _(f1) , is the total number of pixels of the skin segment; projecting {tilde over (C)}₂ _(f1) to a nearest reference point in a reference skin color fine, or a segment formed by the nearest two reference points in the skin color line, selecting whichever junction is nearest, wherein the junction is C₂ _(f1) ; calculating the rest of the facial segments, C₂ _(f2) and C₂ _(f3) using the same method as that for C₂ _(f1) ; as each point on its respective color temperature curve corresponding to an estimated color temperature of a canonical illuminant on the white point line, C₂ _(f1) , C₂ _(f2) and C₂ _(f3) are mapped to C′₂ _(f1) , C′₂ _(f2) and C′₂ _(f3) respectively by a look-up table operation followed by a linear interpolation between neighboring reference points, and the overall illuminant estimation, C₂, computed from the three facial segments is given by ${C_{2} = \frac{\sum\limits_{j = 1}^{3}{C_{2_{fj}}^{\prime}*\theta_{j}}}{\sum\limits_{j = 1}^{3}\theta_{j}}},$ wherein θ_(j) is a confidence related weighted factor; computing the overall illuminant estimation by C₃=(C₁*k₁+C₂*k₂)/(k₁+k₂), wherein k₁ and k₂ are weighting factors; and for some artificial light sources with color profiles different from that of the black body radiation, requiring color profile adjustment in addition to color temperature adjustment, letting C₁={tilde over (C)}₁, with no projection toward the white point line, the same applying for the C₂ calculation.
 6. The method in claim 1, wherein the step of automatic white balance gain adjustment and color enhancement comprises: applying a same gain offset for the entire image and using C₃ as a user-preferred illuminant estimation and a pre-defined standard reference color profile; assuming C₃ being represented by a coordinate set (R1, G, B1) in RGB space, multiplying the R and B color component of each pixel of the image by a factor G/R1 and G/B1 respectively; and applying color correction after automatic white balance gain adjustment by a 3*3 color correction matrix with constant coefficients, expressed as [R′, G′, B′]=A*[R,G,B]_(T).
 7. The method of claim 1, wherein the step of automatic white balance gain adjustment and color enhancement comprises: adjusting the facial segments and a naked skin tone area under illuminant estimation, C₂, to a user-preferred target position defined as the target values in the user entry of the facial color features set; and color of the rest of the image illuminant estimation, C₁, to under a standard reference illumination position, by a first procedure comprising the steps of: looking up for in the facial color features set and applying to the facial area and the naked skin tone area the same transform function as in the process transforming the original captured image to the enhanced image, with adjusted parameters in the function for a rendered image to match the target values corresponding to illuminant estimation, C₂; adjusting color of the rest of the image under illuminant estimation, C₁, to under a standard reference illumination position; smoothing boundaries where heterogeneous adjustments occur; or by a second procedure comprising the steps of: assuming R_(current), B_(current) and G_(current) as the estimated skin tone under current illuminant estimation by C₂ and R_(ref), B_(ref) and G_(ref) to be current target values for face skin corresponding to C₂, calculating ${{R\_ gain}\; = \;\frac{R_{ref}}{R_{current}}},{{B\_ gain}\; = \;\frac{B_{ref}}{B_{current}}},{{{{and}\mspace{14mu}{G\_ gain}} = \frac{G_{ref}}{G_{current}}};}$ multiplying the R, G, and B components of each pixel of the facial skin by R_gain, B_gain and G_gain respectively; in case to avoid luminance level fluctuation artifacts in the facial boundaries, converting the pixels in the face skin area to HSL color space, wherein adjusting the color saturation and hue of the pixels to those of the desired target values, without changing L, by the following procedure: assuming under current illuminant estimation, a luminance and color weighted average of all pixels of the image and the target value in HSL color space being represented as (H_(current), S_(current), L_(current)) and (H_(ref), S_(ref), L_(ref)), respectively, calculating ΔH=H_(ref)−H_(current); ΔS=S_(ref)−S_(current); adjusting the color of each pixel (h_(current0), S_(current0), l_(current0)) by h_(current1)=h_(current0)+(γ*ΔH); S_(current1)=S_(current0)+(θ*ΔS); wherein γ and θ are luminance and color dependent factors and h_(current1) and s_(current1) are adjusted color values for each pixel; detecting naked skin of the user and rendering the color of the detected naked skin using the same way as for facial skin tone; using the same way as for the facial skin tone; converting the adjusted pixels back to RGB space; locating the contours of the eyeball white and the teeth; adjusting the color of the eyeball white and the teeth to the target values of eyeball white and the teeth respectively corresponding to C2 using the same way as in the second procedure for the skin tone; and smoothing the boundaries between areas of heterogeneous color adjustments.
 8. An electronic media device comprises: one or more cameras with at least one camera working in a front-side operational mode; one or more processors with one working as a system controller controlling system operation of the electronic media device; non-transitory memory storage media containing instructions readable by the one or more processors; memory storage media module accessible by the one or more processors to store data and execute the controlling instructions; an apparatus with mechanisms to receive, store or output images, videos and other data; a display device being able to display images, videos and graphics content; a user controllable interactive interface to the electronic media device that takes in the user control input so that the system controller understands and properly responds to the user intention; an automatic white balance control apparatus in the camera working in the front-side operational mode incorporating an automatic white balance method comprising the steps of: acquiring one or a plurality of digital images of scenes including a face of a user or users of the device, including: capturing a digital image or images of a user or users using a lens and image sensor, receiving a digital image or images of a user or users after capturing using a lens and image sensor, or a combination of the capturing and receiving steps; acquiring a facial color features set of the user or users including intrinsic values and target values of the color profiles of a skin tone portion, eye ball white and teeth by a color profile extraction process; acquiring a digital image; conducting face detection, segmentation and recognition on the digital image, wherein if a recognized face is the face of a user matching a user entry in the facial color features set, conducting illuminant estimation based on segmented facial features and the acquired facial color features set resulting in C₂, based on parts of the image other than the segmented facial parts features, resulting in C₁, and determining a final estimation, C₃, based on C₁ and C₂; and conducting automatic white balance gain adjustment and color enhancement based on C₁, C₂, C₃, and the acquired facial color features set of the user or users.
 9. The electronic media device of claim 8, wherein the automatic white balance method further comprises an integrated implementation scheme and distributed implementation schemes, wherein: the integrated implementation scheme accomplishes the method of claim 8 in a single device having at least a camera in a front-side operational mode, including a mobile phones, a digital camera, a camcorder, a laptop computer, and a desktop computer, a desk or mobile computing or communication device, and a color imaging device, and the distributed implementation scheme accomplishes the method of claim 1 by more than one devices with at least one device having at least a camera in an front-side operational mode, wherein the step of capturing a digital image or images is carried out in a first device, acquiring the facial color features set is carried out in a second device, and conducting the illuminant estimation, the automatic white balance gain adjustment, and the color enhancement is carried out in a third device, or another combination of devices.
 10. The electronic media device of claim 8, wherein the steps of acquiring a facial color features set comprises: capturing an image including a face of a user under a set of standard reference illuminations of known color profiles or capturing an image including a face of a user and using a standard reference gray chart in a variety of common shooting conditions and determining illumination profiles of the shooting conditions by analyzing the gray chart; conducting face detection, segmentation, and contour location of face skin, the eyeball white and the teeth; extracting the intrinsic values of the facial color features set of the face skin, the eyeball white and the teeth by averaging pixels in each segment after filtering the pixels using a luminance threshold filter and a histogram-based color filter; extracting the target values of the facial color features by applying the capturing step, conducting step, and intrinsic value extracting step to images enhanced by user choice, user adjustment, or a combination of user choice and user adjustment, using a user-device interface and transform functions corresponding to the user-choice and/or user-adjustment operations performed on the captured image.
 11. The electronic media device of claim 8, wherein the step of acquiring a facial color features set comprises a machine learning mode, wherein the machine learning mode is activated or re-activated by a user or a system service routine, and one or more processors: start illuminant estimation of C₁ in an unsupervised learning mode; if a certain illuminant estimation, C₁₀, has a confidence level, w₁, higher than a threshold, w₁, conduct face detection, segmentation recognition of a buffered image, and if a face of a user matches a user entry in the facial color features sets locate the contours of the face skin, the eyeball white and the teeth, extract the intrinsic values of the facial color features of the face skin, the eyeball white and the teeth by averaging pixels after filtering using a first luminance threshold filter and a second histogram-based color filter, and store the intrinsic values data in a candidate buffer; if for the illuminant estimation C₁₀, the differences between the intrinsic values stored in the candidate buffer are smaller than a threshold with a repetitive appearance probability, P₁, which is bigger than a threshold P_(1t), the illuminant estimation C₁₀ is considered accurate, and an average of the intrinsic values within the difference threshold stored in the candidate buffer is computed and added into a related intrinsic values position of the user entry in the facial color features set; in a supervised learning mode, display, on a display device, an image after automatic white balance adjustments adjusting the image color under the illumination estimated by C₁₀ to under a standard reference illumination or a user-favored illumination condition followed by color correction, and use a user-machine interactive interface to prompt for and acquire user's opinion about a color rendition of the image; if the user confirms that the color rendition is satisfactory, extract intrinsic values of the user under the estimated illumination, C₁₀, using the same procedure described in the unsupervised learning mode and add the intrinsic values to the related intrinsic values position of the user entry in the facial color features set; in a mode combining the supervised and unsupervised learning procedures, after assessing the accuracy of the illuminant estimation, C₁₀, in the unsupervised learning mode, conduct a further evaluation using the same procedure described in the supervised learning mode to confirm the accuracy of illuminant estimation, C₁₀, before related intrinsic values data are added to the facial color features set; acquire the target values data in the supervised learning mode by displaying enhanced images or provide a mechanism for the user to adjust the captured image under the illumination estimated by C₁₀, or a combination thereof, and prompt for and acquire input from the user; extract the target values of the facial color features based on user input using the same procedure described in the unsupervised learning mode, and add the target values together with transform functions corresponding to operations on captured image based on user input to the related position of the user entry in the facial color features set; and complete the learning process after the acquired data in the user entry of the facial color features set cover a sufficient range of color profiles as needed for automatic white balance, and illuminant estimation and automatic white balance adjustments could be carried out using the acquired data in the facial color features set.
 12. The electronic media device of claim 8, wherein the step of illuminant estimation comprises a specific implementation method comprising the steps of: using a (B/G, R/G) chromaticity coordinate system for illuminants with a black body radiation color profile; calculating illuminant estimation, C₁; i_(b) denoting a pixel in an image background and in an RGB color space, with its R, G, and B components represented by r_(ib), g_(ib), b_(ib) respectively, the total number of pixels of the image background portion denoted by T₁, calculating illuminant estimation for the background, {tilde over (C)}₁, given by coordinates, ${{\overset{\_}{C}}_{1} = \left( {\frac{\sum\limits_{1}^{T_{1}}{\alpha_{ib}*\left( \frac{r_{ib}}{g_{ib}} \right)}}{\left( {\left( {\sum\limits_{1}^{T_{1}}\alpha_{ib}} \right)*T_{1}} \right)},\frac{\sum\limits_{1}^{T_{1}}{\alpha_{ib}*\left( \frac{b_{ib}}{g_{ib}} \right)}}{\left( {\left( {\sum\limits_{1}^{T_{1}}\alpha_{ib}} \right)*T_{1}} \right)}} \right)},$ wherein α_(ib) is a weighting coefficient, depending upon the luminance and the coordinates of i_(b); projecting {tilde over (C)}₁ to a nearest reference point in a white point line, or a segment formed by the nearest two reference points in the white point line, selecting whichever junction is nearest, wherein the junction is C₁; calculating C₂ by considering each facial segment as an independent surface, assuming i_(fj) to be a pixel on the facial segment and index, j, denoting a row number of a facial segment in the user entry in the facial color features set, wherein j=1 for a skin segment, j=2 for eyeball white, and j=3 for teeth, and calculating estimated averaged coordinates corresponding to the skin segment by, ${{\overset{\_}{C}}_{2f\; 1} = \left( {\frac{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\left( \frac{b_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}}{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}},\frac{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\left( \frac{r_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}}{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}}} \right)},$ wherein coefficient, β_(f1), is a weighting coefficient, depending upon a luminance, and the coordinates of i_(fj), T₂ _(f1) is the total number of pixels of the skin segment; projecting {tilde over (C)}₂ _(f1) to a nearest reference point in a reference skin color line, or a segment formed by the nearest two reference points in the skin color line, selecting whichever junction is nearest, wherein the junction is C₂ _(f1) ; calculating the rest of the facial segments, C₂ _(f2) and C₂ _(f3) using the same method as that for C₂ _(f1) ; as each point on its respective color temperature curve corresponding to an estimated color temperature of a canonical illuminant on the white point line, C₂ _(f1) , C₂ _(f2) and C₂ _(f3) are mapped to C′₂ _(f1) , C′₂ _(f2) and C′₂ _(f3) respectively by a look-up table operation followed by a linear interpolation between neighboring reference points, and the overall illuminant estimation, C₂, computed from the three facial segments is given by ${C_{2} = \frac{\sum\limits_{j = 1}^{3}{C_{2_{fj}}^{\prime}*\theta_{j}}}{\sum\limits_{j = 1}^{3}\theta_{j}}},$ wherein θ_(j) is a confidence related weighted factor; computing the overall illuminant estimation by C₃=(C₁*k₁+C₂*k₂)/(k₁+k₂), wherein k₁ and k₂ are weighting factors; and for some artificial light sources with color profiles different from that of the black body radiation, requiring color profile adjustment in addition to color temperature adjustment, letting C₁={tilde over (C)}₁, with no projection toward the white point line, the same applying for the C₂ calculation.
 13. The electronic media device of claim 8, wherein the step of automatic white balance gain adjustment and color enhancement comprises: applying same gain offset for the entire image and using C₃ as a user-preferred illuminant estimation and a pre-defined standard reference color profile; assuming C₃ being represented by a coordinate set (R1, G, B1) in RGB space, multiplying the R and B color component of each pixel of the image by a factor G/R1 and G/B1 respectively; and applying color correction after automatic white balance gain adjustment by a 3*3 color correction matrix with constant coefficients, expressed as [R′, G′, B′]=A*[R,G,B]_(T).
 14. The electronic media device in claim 8, wherein the step of automatic white balance gain adjustment and color enhancement comprises: adjusting the facial segments and a naked skin tone area under illuminant estimation, C₂, to a user-preferred target position defined as the target values in the user entry of the facial color features set; and color of the rest of the image illuminant estimation, C₁, to under a standard reference illumination position, by a first procedure comprising the steps of: looking up for in the facial color features set and applying to the facial area and the naked skin tone area the same transform function as in the process transforming the original captured image to the enhanced image, with adjusted parameters in the function for a rendered image to match the target values corresponding to illuminant estimation, C₂; adjusting color of the rest of the image under illuminant estimations, C₁, to under a standard reference illumination position; smoothing boundaries where heterogeneous adjustments occur; or by a second procedure comprising the steps of: assuming R_(current), B_(current) and G_(current) as the estimated skin tone under current illuminant estimation by C₂ and R_(ref), B_(ref) and G_(ref) to be current target values for face skin corresponding to C₂, calculating ${{R\_ gain}\; = \;\frac{R_{ref}}{R_{current}}},{{B\_ gain}\; = \;\frac{B_{ref}}{B_{current}}},{{{{and}\mspace{14mu}{G\_ gain}} = \frac{G_{ref}}{G_{current}}};}$ multiplying the R, G, and B components of each pixels of the facial skin by R_gain, B_gain and G_gain respectively; in case to avoid luminance level fluctuation artifacts in the facial boundaries, converting the pixels in the face skin area to HSL color space, wherein adjusting the color saturation and hue of the pixels to those of the desired target values, without changing L, by the following procedure: assuming under current illuminant estimation, a luminance and color weighted average of all pixels of the image and the target value in HSL color space being represented as (H_(current), S_(current), L_(current)) and (H_(ref), S_(ref), L_(ref)), respectively, calculating ΔH=H_(ref)−H_(current); ΔS=S_(ref)−S_(current); adjusting the color of each pixel (h_(current0), S_(current0), l_(current0)) by h_(current1)=h_(current0)+(γ*ΔH); S_(current1)=S_(current0)+(θ*ΔS); wherein γ and θ are luminance and color dependent factors and h_(current1) and s_(current1) are adjusted color values for each pixel; detecting naked skin of the user and rendering the color of the detected naked skin using the same way as for facial skin tone; using the same way as for the facial skin tone; converting the adjusted pixels back to RGB space; locating the contours of the eyeball white and the teeth; adjusting the color of the eyeball white and the teeth to the target values of eyeball white and the teeth respectively corresponding to C₂ using the same way as in the second procedure for the skin tone; and smoothing the boundaries between areas of heterogeneous color adjustments.
 15. The electronic media device in claim 8, wherein the automatic white balance method comprises a prioritized multiple user operational mode, wherein: an owner or an administrator or a service routine of the device sets a priority rank number associated with each user entry in the facial color features set, so that the automatic white balance adjustment and color enhancement is biased to render image quality in an order favoring users with higher priority rank numbers when multiple faces of users are recognized in an image.
 16. The electronic media device in claim 8, wherein the automatic white balance of the front-side camera comprising an operational mode to work concurrently with and support the automatic white balance illuminant estimation of the back-side camera, wherein: the back-side camera requires the assistance of the illuminant estimation by the front-side camera through a service request to the system controller, and the system controller endorses the request when no resource or application conflict is found, and if the front-side camera is not in use by the user, launches the front-side camera, and the front-side camera conducts illuminant estimation and outputs the illuminant estimation results to the back-side camera; the back-side camera uses the illuminant estimation results by the front-side camera as a reference for illuminant estimation by the back-side camera in situations comprising: the fields of view of both cameras are both indoor or outdoor; the distances of fields of view of both cameras are close to the device; the color profile of light source detected by the front-side camera is the same or close to the illuminant estimation by the back-side camera; the confidence level for illuminant estimation by the back-side camera is too low; the illuminant estimation of both cameras are the same or close, or a combination thereof.
 17. One or more non-transitory program storage devices, containing instructions readable by one or more processors for causing the one or more processors to perform a method of automatic white balance, comprising the steps of: acquiring one or a plurality of digital images of scenes including a face of a user or users of the device, including: capturing a digital image or images of a user or users using a lens and image sensor, receiving a digital image or images of a user or users after capturing using a lens and image sensor, or a combination of the capturing and receiving steps; acquiring a facial color features set of the user or users including intrinsic values and target values of the color profiles of a skin tone portion, eye ball white and teeth by a color profile extraction process; acquiring a digital image; conducting face detection, segmentation and recognition on the digital image, wherein if a recognized face is the face of a user matching a user entry in the facial color features set, conducting illuminant estimation based on segmented facial features and the acquired facial color features set resulting in C₂, based on parts of the image other than the segmented facial parts features, resulting in C₁, and determining a final estimation, C₃, based on C₁ and C₂; and conducting automatic white balance gain adjustment and color enhancement based on C₁, C₂, C₃, and the acquired facial color features set of the user or users.
 18. The one or more non-transitory program storage devices of claim 17, wherein the method further comprises an integrated implementation scheme and a distributed implementation scheme, wherein: the integrated implementation scheme accomplishes the method of claim 1 in a single device having at least a camera in a front-side operational mode, including a mobile phone, a digital camera, a camcorder, a laptop computer, a desktop computer, a desk or mobile computing or communication device, and a color imaging devices, and the distributed implementation scheme accomplishes the method of claim 17 by more than one devices with at least one device having at least a camera in an front-side operational mode, wherein the step of capturing a digital image or images is carried out in a first device; acquiring the facial color features set is carried out in a second device, and conducting the illuminant estimation, the automatic white balance gain adjustment, and the color enhancement is carried out in a third device, or a combination of the first device, second device, and third device.
 19. The one or more non-transitory program storage devices of claim 17, wherein step of acquiring a facial color features set comprises: capturing an image including a face of a user under a set of standard reference illuminations of known color profiles or capturing an image including a face of a user and using a standard reference gray chart in a variety of common shooting conditions and determining illumination profiles of the shooting conditions by analyzing the gray chart; conducting face detection, segmentation, and contour location of face skin, the eyeball white and the teeth; extracting the intrinsic values of the facial color features set of the face skin, the eyeball white and the teeth by averaging pixels in each segment after filtering the pixels using a luminance threshold filter and a histogram-based color filter; extracting the target values of the facial color features by applying the capturing step, conducting step, and intrinsic value extracting step to images enhanced by user choice, user adjustment, or a combination of user choice and user adjustment, using a user-device interface and transform functions corresponding to the user-choice and/or user-adjustment operations performed on the captured image.
 20. The one or more non-transitory program storage devices of claim 17, wherein the step of acquiring a facial color features set comprises: capturing an image including a face of a user under a set of standard reference illuminations of known color profiles or capturing an image including a face of a user and using a standard reference gray chart in a variety of common shooting conditions and determining illumination profiles of the shooting conditions by analyzing the gray chart; conducting face detection, segmentation, and contour location of face skin, the eyeball white and the teeth; extracting the intrinsic values of the facial color features set of the face skin, the eyeball white and the teeth by averaging pixels in each segment after filtering the pixels using a luminance threshold filter and a histogram-based color filter; extracting the target values of the facial color features by applying the capturing step, conducting step, and intrinsic value extracting step to images enhanced by user choice, user adjustment, or a combination of user choice and user adjustment, using a user-device interface and transform functions corresponding to the user-choice and/or user-adjustment operations performed on the captured image.
 21. The one or more non-transitory program storage devices of claim 17, wherein the step of illuminant estimation comprises a specific implementation method comprising the steps of: using a (B/G, R/G) chromaticity coordinate system for illuminants with a black body radiation color profiles; calculating illuminant estimation, C₁; i_(b) denoting a pixel in an image background and in an RGB color space, with its R, G, and B components represented by r_(ib), g_(ib), b_(ib) respectively, the total number of pixels of the image background portion denoted by T₁, calculating illuminant estimation for the background, {tilde over (C)}₁, given by coordinates; ${{\overset{\_}{C}}_{1} = \left( {\frac{\sum\limits_{1}^{T_{1}}{\alpha_{ib}*\left( \frac{T_{1}}{g_{ib}} \right)}}{\left( {\left( {\sum\limits_{1}^{T_{1}}\alpha_{ib}} \right)*T_{1}} \right)},\frac{\sum\limits_{1}^{T_{1}}{\alpha_{ib}*\left( \frac{b_{ib}}{g_{ib}} \right)}}{\left( {\left( {\sum\limits_{1}^{T_{1}}\alpha_{ib}} \right)*T_{1}} \right)}} \right)},$ wherein α_(ib) is a weighting coefficient, depending upon the luminance and the coordinates of i_(b); projecting {tilde over (C)}₁ to a nearest reference point in a white point line, or a segment formed by the nearest two reference points in the white point line, selecting whichever junction is nearest, wherein the junction is C₁; calculating C₂ by considering each facial segment as an independent surface, assuming i_(fj) to be a pixel on the facial segment and index, j, denoting a row number of a facial segment in the user entry in the facial color features set, wherein j=1 for a skin segment, j=2 for eyeball white, and j=3 for teeth, and calculating estimated average coordinates corresponding to the skin segment by, ${{\overset{\_}{C}}_{2_{fi}} = \left( {\frac{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\left( \frac{b_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}}{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}},\frac{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\left( \frac{r_{i_{f\; 1}}}{g_{i_{f\; 1}}} \right)*\beta_{i_{f\; 1}}}}{\sum\limits_{i = 1}^{T_{2_{f\; 1}}}{\beta_{i_{f\; 1}}*T_{2_{f\; 1}}}}} \right)},$ wherein coefficient, β_(f1), is a weighting coefficient, depending upon a luminance and the coordinates of i_(fj), T₂ _(f1) is the total number of pixels of the skin segment; projecting {tilde over (C)}₂ _(f1) to a nearest reference point in a reference skin color line, or a segment formed by the nearest two reference points in the skin color line, selecting whichever junction is nearest, wherein the junction is C₂ _(f1) ; calculating the rest of the facial segments, C₂ _(f2) and C₂ _(f3) using the same method as that for C₂ _(f1) ; as each point on its respective color temperature curve corresponding to an estimated color temperature of a canonical illuminant on the white point line, C₂ _(f1) , C₂ _(f2) and C₂ _(f3) are mapped to C′₂ _(f1) , C′₂ _(f2) and C′₂ _(f3) respectively by a look-up table operation followed by a linear interpolation between neighboring reference points, and the overall illuminant estimation, C₂, computed from the three facial segments is given by $C_{2} = {\frac{\sum\limits_{j = 1}^{3}{C_{2_{fj}}^{\prime}*\theta_{j}}}{\sum\limits_{j = 1}^{3}\theta_{j}}.}$ wherein θ_(j) is a confidence related weighted factor; computing the overall illuminant estimation by C₃=(C₁*k₁+C₂*k₂)/(k₁+k₂), wherein k₁ and k₂ are weighting factors; and for some artificial light sources with color profiles different from that of the black body radiation, requiring color profile adjustment in addition to color temperature adjustment, letting C₁={tilde over (C)}₁, with no projection toward the white point line, the same applying for the C₂ calculation.
 22. The one or more non-transitory program storage devices of claim 17, wherein the step of automatic white balance gain adjustment and color enhancement comprises: applying a same gain offset for the entire image; and using C₃ as a user-preferred illuminant estimation and a pre-defined standard reference color profile; assuming C₃ being represented by a coordinate set (R1, G, B1) in RGB space, multiplying the R and B color component of each pixel of the image by a factor G/R1 and G/B1 respectively; and applying color correction after automatic white balance gain adjustment by a 3*3 color correction matrix with constant coefficients, expressed as [R′, G′, B′]=A*[R,G,B]_(T).
 23. The one or more non-transitory program storage devices of claim 16, wherein the step of automatic white balance gain adjustment and color enhancement comprises: adjusting the facial segments and a naked skin tone area under illuminant estimation, C₂, to a user-preferred target position defined as the target values in the user entry of the facial color features set; and color of the rest of the image illuminant estimation, C₁, to under a standard reference illumination position, by a first procedure comprising the steps of: looking up for in the facial color features set and applying to the facial area and the naked skin tone area the same transform function as in the process transforming the original captured image to the enhanced image, with adjusted parameters in the function for a rendered image to match the target values corresponding to illuminant estimation, C₂; adjusting color of the rest of the image under illuminant estimation, C₁, to under a standard reference illumination position; smoothing boundaries where heterogeneous adjustments occur; or by a second procedure comprising the steps of: assuming R_(current), B_(current) and G_(current) as the estimated skin tone under current illuminant estimation by C₂ and R_(ref), B_(ref) and G_(ref) to be current target values for face skin corresponding to C₂, calculating ${{R\_ gain}\; = \;\frac{R_{ref}}{R_{current}}},{{B\_ gain}\; = \;\frac{B_{ref}}{B_{current}}},{{{{and}\mspace{14mu}{G\_ gain}} = \frac{G_{ref}}{G_{current}}};}$ multiplying the R, G, and B components of each pixels of the facial skin by R_gain, B_gain and G_gain respectively; in case to avoid luminance level fluctuation artifacts in the facial boundaries, converting the pixels in the face skin area to HSL color space, wherein adjusting the color saturation and hue of the pixels to those of the desired target values, without changing L, by the following procedure: assuming under current illuminant estimation, a luminance and color weighted average of all pixels of the image and the target value in HSL color space being represented as (H_(current), S_(current), L_(current)) and (H_(ref), S_(ref), L_(ref)), respectively, calculating ΔH=H_(ref)−H_(current); ΔS=S_(ref)−S_(current); adjusting the color of each pixel (h_(current0), s_(current0), l_(current0)) by h_(current1)=h_(current0)+(γ*ΔH); S_(current1)=S_(current0)+(θ*ΔS); wherein γ and θ are luminance and color dependent factors and h_(current1) and s_(current1) are adjusted color values for each pixel; detecting naked skin of the user and rendering the color of the detected naked skin using the same way as for facial skin tone; using the same way as for the facial skin tone; converting the adjusted pixels back to RGB space; locating the contours of the eyeball white and the teeth; adjusting the color of the eyeball white and the teeth to the target values of eyeball white and the teeth respectively corresponding to C₂ using the same way as in the second procedure for the skin tone; and smoothing the boundaries between areas of heterogeneous color adjustments.
 24. The method of claim 1, wherein the color processing further comprises the steps of: conducting an illuminant estimation of other parts than the face of the user in the digital image; conducting an illuminant estimation of the entire digital image based on the illuminant estimation of the face of the user and the illuminant estimation of the other parts than the face of the user in the digital image; conducting an automatic white balance gain adjustment and/or a color correction and/or a color enhancement of the digital image based on the illuminant estimations.
 25. The method of claim 1 or claim 24, comprising an integrated implementation scheme or a distributed implementation scheme, wherein the integrated implementation scheme accomplishes all the steps in a single electronic media device having at least a camera in a frontside operational mode, and the distributed implementation scheme accomplishes all the steps in a plurality of electronic media devices.
 26. The method of claim 1, wherein the acquiring a facial color features set comprises being initiated and re-initiable by a user and/or a service routine, comprising one or more of the following Procedures: Procedure 1: acquiring an image including a face of a user under each of a set of standard reference illuminations of known color profiles; conducting face detection and segmentation of facial skin tone area eyeball white and teeth of the face of the user; extracting data of color profiles including coordinates in a color space of the facial skin tone area, eyeball white and teeth from the face of the user; Procedure 2: acquiring an image including a face of a user and a reference gray chart in a variety of common shooting conditions and determining a color profile of an illumination in each of the shooting conditions by analyzing the reference gray chart; corresponding to the determined color profile of the illumination in each of the shooting conditions, conducting a face detection and segmentation of facial skin tone area, eyeball white and teeth of the face of the user; extracting data of color profiles including coordinates in a color space of the facial skin tone area, eyeball white and teeth from the face of the user; Procedure 3: acquiring at least one set of data of color profile including coordinates in a color space of facial skin tone area of a user through Procedure 1 or Procedure 2, wherein the face of the user is illuminated by an illumination of a known or determined color profile; conducting an extrapolation within human facial skin tone statistical distribution trajectory in a color space to obtain more data of the color profile of the facial skin tone area of the user; Procedure 4: acquiring the facial color features set of one or more users a machine learning including from acquired images comprising a face or faces of the one or more users.
 27. The method of claim 1 or 24, further comprising a user and/or a service routine on the one electronic media device or one of the electronic media devices setting a priority rank number associated with an entry of a user in the facial color features set, wherein the automatic white balance and/or the color correction and/or the color enhancement are biased in an order favoring the users with highest priority rank numbers when multiple faces of users are identified in an acquired digital image.
 28. An electronic media device comprising one or more cameras including at least a front side operational camera, a device controller, one or more processors and/or programmable and/or configurable hardware computational circuitries, control logic circuitries, user-device interfaces, communication modules for receiving or sending digital data, memory storage modules having instructions and data recorded and/or received and/or processed thereon causing the electronic media device to perform a color processing of acquired images and/or videos by the electronic media device comprising the steps of: acquiring a facial color features set of one or more users; acquiring a digital image; identifying successfully a face in the digital image matching the face of a user, wherein data of facial color features of the user have been acquired in the facial color features set; acquiring data of facial color profile of at least one facial part of facial skin tone area, eye ball white and teeth from the face of the user in the digital image; conducting an illuminant estimation of the face of the user in the digital image based on the acquired data of facial color profile of the at least one facial part of the facial skin tone area, eye ball white and teeth from the face of the user in the digital image referencing data of facial color features of the user in the facial color features set; conducting an illuminant estimation of other parts than the face of the user in the digital image; conducting an illuminant estimation of the entire digital image based on the illuminant estimation of the face of the user and the illuminant estimation of the other parts than the face of the user in the digital image; conducting an automatic white balance gain adjustment and/or a color correction and/or a color enhancement of the digital image based on the illuminant estimations.
 29. The electronic media device of claim 28, wherein the step of acquiring a facial color features set comprises being initiated and re-initiable by a user and/or a service routine of the electronic media device, comprising one or more of the following Procedures: Procedure 1: acquiring an image including a face of a user under each of a set of standard reference illuminations of known color profiles; conducting face detection and segmentation of facial skin tone area, eyeball white and teeth of the face of the user; extracting data of color profiles including coordinates in a color space of the facial skin tone area, eyeball white and teeth from the face of the user; Procedure 2: acquiring an image including a face of a user and a reference gray chart in a variety of common shooting conditions and determining a color profile of an illumination in each of the shooting conditions analyzing the reference gray chart; corresponding to the determined color profile of the illumination in each of the shooting conditions, conducting a face detection and segmentation of facial skin tone area, eyeball white and teeth of the face of the user; extracting data of color profiles including coordinates in a color space of the facial skin tone area, eyeball white and teeth from the face of the user; Procedure 3: acquiring at least one set of data of color profile including coordinates in a color space of facial skin tone area of a user through Procedure 1 or Procedure 2, wherein the face of the user is illuminated by an illumination of a known or determined color profile; conducting an extrapolation within human facial skin tone statistical distribution trajectory in a color space to obtain more data of the color profile of the facial skin tone area of the user; acquiring the facial color features set of one or more users by a machine learning including from acquired images comprising a face or faces of the one or more users.
 30. The electronic media device of claim 28, further comprising a user and/or a service routine on the electronic media device setting a priority rank number associated with an entry of a user in the facial color features set, wherein the automatic white balance and/or the color correction and/or the color enhancement are biased in an order favoring the users with highest priority rank numbers when multiple faces of users are identified in an acquired digital image.
 31. A method of illuminant estimation referencing color profile of facial skin tone area for a color processing of image and/or video media in one or more electronic media devices comprising the steps of: acquiring a collection of data of color profile of facial skin tone area of one or more users; acquiring a digital image; identifying successfully a face in the digital image matching the face of a user, wherein data of color profile of facial skin tone area of the user have been acquired in the collection of data of color profile of facial skin tone area of at least a user; acquiring data of color profile of facial skin tone area from the face of the user in the digital image; conducting illuminant estimation of the face of the user in the digital image based on the acquired data of color profile of the facial skin tone area of the user in the digital image referencing the data of color profile of facial skin tone area of the user in the collection of data of color profile of facial skin tone area of one or more users.
 32. The method of claim 31, further comprising the steps of: conducting an illuminant estimation of other parts than the face of the user in the digital image; conducting an illuminant estimation of the entire digital image based on the illuminant estimation of the face of the user and the illuminant estimation of the other parts than the face of the user in the digital image; conducting an automatic white balance pain adjustment and/or a color correction and/or a color enhancement of the digital image based on the illuminant estimations.
 33. The method of claim 31 or claim 32, comprises an integrated implementation scheme or a distributed implementation scheme, wherein the integrated implementation scheme accomplishes all the steps in a single electronic media device having at least a camera in a frontside operational mode, and the distributed implementation scheme accomplishes all the steps in a plurality of electronic media devices.
 34. The method of claim 31, wherein the step of acquiring a collection of data of color profile of facial skin tone area of one or more users comprises being initiated and re-initiable by a user and/or a service routine, comprising one or more of the following Procedures: Procedure 1: acquiring an image including a face of a user under each of a set of standard reference illuminations of known color profiles; conducting face detection and segmentation of facial skin tone area, eyeball white and teeth of the face of the user; extracting data of color profiles including coordinates in a color space of the facial skin tone area, eyeball white and teeth from the face of the user; Procedure 2: acquiring an image including a face of a user and a reference gray chart in a variety of common shooting conditions and determining a color profile of an illumination in each of the shooting conditions by analyzing the reference gray chart; corresponding to the determined color profile of the illumination in each of the shooting conditions, conducting a face detection and segmentation of facial skin tone area, eyeball white and teeth of the face of the user; extracting data of color profiles including coordinates in a color space of the facial skin tone area, eyeball white and teeth from the face of the user; Procedure 3: acquiring at least one set of data of color profile including coordinates in a color space of facial skin tone area of a user through Procedure 1 or Procedure 2, wherein the face of the user is illuminated by an illumination of a known or determined color profile; conducting an extrapolation within human facial skin tone statistical distribution trajectory in a color space to obtain more data of the color profile of the facial skin tone area of the user; Procedure 4: acquiring the facial color features set of one or more users a machine learning including from acquired images comprising a face or faces of the one or more users.
 35. The method of claim 31 or 32, further comprising a user and/or a service routine on the one electronic media device or one of the electronic media devices setting a priority rank number associated with an entry of a user in the facial color features set, wherein the automatic white balance and/or the color correction and/or the color enhancement are biased in an order favoring the users with highest priority rank numbers when multiple faces of users are identified in an acquired digital image. 